package org.csu.mypetstore.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("inventory")
public class ItemInventory {

    @TableId(value = "itemid", type =  IdType.INPUT)
    private String itemId;
    @TableField(value = "qty")
    private int quantity;

    public void setItemId( String itemId ) {
        this.itemId = itemId;
    }

    public void setQuantity( int quantity ) {
        this.quantity = quantity;
    }

    public String getItemId() {
        return itemId;
    }

    public int getQuantity() {
        return quantity;
    }
}
